package com.qc.ayouth.shop.dbs.service.system.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qc.ayouth.shop.dbs.entity.TSystemAdmin;
import com.qc.ayouth.shop.dbs.mapper.TSystemAdminMapper;
import com.qc.ayouth.shop.dbs.service.system.TSystemAdminService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 管理后台用户表  服务实现类
 * </p>
 *
 * @author Haojg
 * @since 2020-07-04
 */
@Service
public class TSystemAdminServiceImpl extends ServiceImpl<TSystemAdminMapper, TSystemAdmin> implements TSystemAdminService {

    @Override
    public List<TSystemAdmin> getAdminByUsername(String userName) {
        QueryWrapper<TSystemAdmin> qw = new QueryWrapper<>();
        qw.eq("username", userName);
        return this.baseMapper.selectList(qw);
    }
}
